<include file="Finance:leftmenu" />
<div class="content-right fl">
    <h1 class="content-right-title">充值流水</h1>
    <div class="tablesWrap">
        <form action="" method="get" name="form1">
            <div class="tables-searchbox">
                <input type="text" class="input" name="order_id" id="order_id" value="<?php echo get('order_id');?>" placeholder="订单ID">
                <input type="text" class="input" name="user_id" id="user_id" value="<?php echo get('user_id');?>" placeholder="用户ID">
                <select name="logtype" class="select mini" id="logtype">
                    <option value="" <?php echo (get("logtype") == "") ? "selected" : "";?> >类型</option>
                    <option value="0" <?php echo (get("logtype") == "0" && (get("logtype") !='')) ? "selected" : "";?> >支出</option>
                    <option value="1" <?php echo (get("logtype") == "1") ? "selected" : "";?> >收入</option>
                </select>
                <button class="btn btn-primary"><i class="gicon-search white"></i>查询</button>
                <input type="hidden" name="action" value="">
            </div>
        </form>
        <table class="wxtables">
            <colgroup>
                <col width="3%">
               <col width="5%">
               <col width="6%">
               <col width="6%">
               <col width="6%">
                <col width="6%">
                <col width="6%">
                <col width="6%">
                <col width="6%">
                <col width="6%">
                <col width="5%">
                <col width="5%">
                <col width="6%">
            </colgroup>
            <thead>
            <tr>
                <td>编号</td>
                <td>用户id</td>
                <td>用户昵称</td>
                <td>描述</td>
                <td>充值类型</td>
                <td>类型</td>
                <td>金额</td>
                <td>余额</td>             
                <td>创建时间</td>
                <td>操作人</td>
                <td>备注</td>
            </tr>
            </thead>
            <tbody>
            <?php foreach($datalist as $k=>$v){ ?>
            <tr>
                <td><?php echo $v['log_id'];?></td>
                <td><a style="color:blue;" href="/admin/member/index?user_id=<?php echo $v['uid'];?>" target="_blank"><?php echo $v['uid'];?></a></td>
                <td><?php echo emoji_unified_to_html($v['nickname']);?></td>
                <td><?php echo $v['content'];?></td>
                <td><?php echo $v['mtype']==1?C('YONGJIN_NAME'):($v['mtype']==4?'库存':C('CASH_NAME'));?></td>
                <td><?php echo $v['logtype'] ? "<span style='color:red'>收入</span>" : "<span style='color:green'>支出</span>";?></td>
                <td><?php echo $v['mtype']==1?$v['money']:$v['money'];?></td>
                <td><?php echo $v['cash_money'];?></td>
                <td><?php echo $v['order_time'] ? $v['order_time'] : $v['create_time'];?></td>
                <td><?php echo $v['manager_username'];?></td>
                <td><?php echo $v['note'];?></td>
            </tr>
            <?php } ?>                         
            </tbody>
        </table>
	<div class="tables-btmctrl clearfix">
           <div class="mgt10">
               <div class="paginate">
                  {$page}
               </div>
           </div>
	</div>
    </div>

</div>

